package test11;

public class RoomCar implements CarInter,RoomInter{

    public RoomCar(){
        System.out.println("房车类RoomCar继承房子和车子接口");
    }
    @Override
    public void red() {
        System.out.println("房车具有房子的保暖性");
    }

    @Override
    public void sheepPeop() {
        System.out.println("房车具有房子的可休息性");
    }

    @Override
    public void run() {
        System.out.println("房车具有车子的便捷性");
    }

    @Override
    public void runPepo() {
        System.out.println("房车具有车子的载人移动性");
    }
}
